package com.jianyun.jyzs.bean;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.io.Serializable;

/**
 * Created by liml on 17/6/27.
 */

@DatabaseTable(tableName = "table_order")
public class OrderResponse_ extends Response implements Serializable{

    @DatabaseField(generatedId = true)
    private int id;
    @DatabaseField
    private boolean deleted;
    @DatabaseField
    private boolean fromWeb;
    @DatabaseField
    private String message;
    @DatabaseField(foreign = true)
    private PoBean po;
    @DatabaseField
    private boolean result;
    @DatabaseField
    private String workOrders;

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public boolean isFromWeb() {
        return fromWeb;
    }

    public void setFromWeb(boolean fromWeb) {
        this.fromWeb = fromWeb;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public PoBean getPo() {
        return po;
    }

    public void setPo(PoBean po) {
        this.po = po;
    }

    public boolean isResult() {
        return result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }

    public String getWorkOrders() {
        return workOrders;
    }

    public void setWorkOrders(String workOrders) {
        this.workOrders = workOrders;
    }

    @Override
    public String toString() {
        return "OrderResponse_{" +
                "id="+id+
                "deleted=" + deleted +
                ", fromWeb=" + fromWeb +
                ", message=" + message +
                ", po=" + po +
                ", result=" + result +
                ", workOrders=" + workOrders +
                '}';
    }

    @DatabaseTable(tableName = "tab_order_po")
    public static class PoBean {
        @Override
        public String toString() {
            return "CrmDetailBean{" +
                    "attachmentVersion=" + attachmentVersion +
                    ", createDate='" + createDate + '\'' +
                    ", createUserId='" + createUserId + '\'' +
                    ", createUserName='" + createUserName + '\'' +
                    ", emergencyState=" + emergencyState +
                    ", endDate='" + endDate + '\'' +
                    ", enterpriseCode='" + enterpriseCode + '\'' +
                    ", folderName='" + folderName + '\'' +
                    ", id='" + id + '\'' +
                    ", importantState=" + importantState +
                    ", nodeVersion=" + nodeVersion +
                    ", projectId='" + projectId + '\'' +
                    ", projectName='" + projectName + '\'' +
                    ", realEndDate=" + realEndDate +
                    ", responUser='" + responUser + '\'' +
                    ", responUserId='" + responUserId + '\'' +
                    ", titleName='" + titleName + '\'' +
                    ", version=" + version +
                    ", workState=" + workState +
                    ", workType='" + workType + '\'' +
                    ", worknote='" + worknote + '\'' +
                    '}';
        }
        @DatabaseField(generatedId = true)
        private int pid;
        @DatabaseField
        private int attachmentVersion;
        @DatabaseField
        private String createDate;
        @DatabaseField
        private String createUserId;
        @DatabaseField
        private String createUserName;
        @DatabaseField
        private int emergencyState;
        @DatabaseField
        private String endDate;
        @DatabaseField
        private String enterpriseCode;
        @DatabaseField
        private String folderName;
        @DatabaseField
        private String id;
        @DatabaseField
        private int importantState;
        @DatabaseField
        private int nodeVersion;
        @DatabaseField
        private String projectId;
        @DatabaseField
        private String projectName;
        @DatabaseField
        private String realEndDate;
        @DatabaseField
        private String responUser;
        @DatabaseField
        private String responUserId;
        @DatabaseField
        private String titleName;
        @DatabaseField
        private int version;
        @DatabaseField
        private int workState;
        @DatabaseField
        private String workType;
        @DatabaseField
        private String worknote;
        @DatabaseField
        private boolean isPartake;
        @DatabaseField
        private int orderTag;

        public int getPid() {
            return pid;
        }

        public void setPid(int pid) {
            this.pid = pid;
        }

        public boolean isPartake() {
            return isPartake;
        }

        public void setPartake(boolean partake) {
            isPartake = partake;
        }

        public int getOrderTag() {
            return orderTag;
        }

        public void setOrderTag(int orderTag) {
            this.orderTag = orderTag;
        }

        public int getAttachmentVersion() {
            return attachmentVersion;
        }

        public void setAttachmentVersion(int attachmentVersion) {
            this.attachmentVersion = attachmentVersion;
        }

        public String getCreateDate() {
            return createDate;
        }

        public void setCreateDate(String createDate) {
            this.createDate = createDate;
        }

        public String getCreateUserId() {
            return createUserId;
        }

        public void setCreateUserId(String createUserId) {
            this.createUserId = createUserId;
        }

        public String getCreateUserName() {
            return createUserName;
        }

        public void setCreateUserName(String createUserName) {
            this.createUserName = createUserName;
        }

        public int getEmergencyState() {
            return emergencyState;
        }

        public void setEmergencyState(int emergencyState) {
            this.emergencyState = emergencyState;
        }

        public String getEndDate() {
            return endDate;
        }

        public void setEndDate(String endDate) {
            this.endDate = endDate;
        }

        public String getEnterpriseCode() {
            return enterpriseCode;
        }

        public void setEnterpriseCode(String enterpriseCode) {
            this.enterpriseCode = enterpriseCode;
        }

        public String getFolderName() {
            return folderName;
        }

        public void setFolderName(String folderName) {
            this.folderName = folderName;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public int getImportantState() {
            return importantState;
        }

        public void setImportantState(int importantState) {
            this.importantState = importantState;
        }

        public int getNodeVersion() {
            return nodeVersion;
        }

        public void setNodeVersion(int nodeVersion) {
            this.nodeVersion = nodeVersion;
        }

        public String getProjectId() {
            return projectId;
        }

        public void setProjectId(String projectId) {
            this.projectId = projectId;
        }

        public String getProjectName() {
            return projectName;
        }

        public void setProjectName(String projectName) {
            this.projectName = projectName;
        }

        public String getRealEndDate() {
            return realEndDate;
        }

        public void setRealEndDate(String realEndDate) {
            this.realEndDate = realEndDate;
        }

        public String getResponUser() {
            return responUser;
        }

        public void setResponUser(String responUser) {
            this.responUser = responUser;
        }

        public String getResponUserId() {
            return responUserId;
        }

        public void setResponUserId(String responUserId) {
            this.responUserId = responUserId;
        }

        public String getTitleName() {
            return titleName;
        }

        public void setTitleName(String titleName) {
            this.titleName = titleName;
        }

        public int getVersion() {
            return version;
        }

        public void setVersion(int version) {
            this.version = version;
        }

        public int getWorkState() {
            return workState;
        }

        public void setWorkState(int workState) {
            this.workState = workState;
        }

        public String getWorkType() {
            return workType;
        }

        public void setWorkType(String workType) {
            this.workType = workType;
        }

        public String getWorknote() {
            return worknote;
        }

        public void setWorknote(String worknote) {
            this.worknote = worknote;
        }
    }
}
